<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="docgen-resources/docgen.css" type="text/css">
  <meta name="generator" content="FreeMarker Docgen (DocBook 5)">
  <title>
    FreeMarker Manual - 2.1.2
  </title>
    <script type="text/javascript" src="docgen-resources/jquery.js"></script>
    <script type="text/javascript" src="docgen-resources/linktargetmarker.js"></script>
</head>
<body>

    <div class="navigation">
    <div class="breadcrumb">
<span class="breadcrumb">        You are here:
          <a href="index.html">Book</a>
            <b>></b>
          <a href="app.html">Appendixes</a>
            <b>></b>
          <a href="app_versions.html">Versions</a>
            <b>></b>
          2.1.2
</span>    </div>
    <div class="bookmarks">
<span class="bookmarks">Bookmarks:
<a href="alphaidx.html">Alpha. index</a>, <a href="gloss.html">Glossary</a>, <a href="dgui_template_exp.html#exp_cheatsheet">Expressions</a>, <a href="ref_builtins_alphaidx.html">?builtins</a>, <a href="ref_directive_alphaidx.html">#directives</a>, <a href="ref_specvar.html">.spec_vars</a>, <a href="app_faq.html">FAQ</a>, <a href="api/index.html">API</a>, <a href="../index.html">Home</a></span>    </div>
    <div class="pagers">
      <div class="pagersVerticalSpacer"><img src="docgen-resources/img/none.gif" width="1" height="1" alt="" hspace="0" vspace="0" border="0"/></div>
<div class="pagerButton"><a href="versions_2_1_1.html"><span class="hideA">Next page: </span>2.1.1</a></div><div class="pagerButton"><a href="versions_2_1_3.html">Previous page</a></div><div class="pagerButton"><a href="app_versions.html">Parent page</a></div><div class="pagerButton"><a href="index.html">Contents</a></div>      <div class="pagersVerticalSpacer"><img src="docgen-resources/img/none.gif" width="1" height="1" alt="" hspace="0" vspace="0" border="0"/></div>
    </div>
    </div>

<div id="mainContent">

  
  
  
  
  <h1 class="rank_section1"
        id="pageTopTitle">
<a name="versions_2_1_2"></a>2.1.2  </h1>
    
    <div class="toc">
      <p>
        <b>
            Page Contents
        </b>
      </p>
      
  <ul class="noMargin">
      <li style="padding-bottom: 0.5em"><i><a href="#docgen_afterTheTOC">Intro.</a></i></li>
      <li>
        <a href="#autoid_233">Changes in FTL (FreeMarker Template Language)</a>
      </li>
      <li>
        <a href="#autoid_234">Other changes</a>
      </li>
  </ul>
    </div>
    <a name="docgen_afterTheTOC"></a>
    
<p>Date of release: 2002-11-28</p>
            
  
  
  
  <h2 class="rank_section2"
        >
<a name="autoid_233"></a>Changes in FTL (FreeMarker Template Language)  </h2>


              <div class="itemizedlist">
<ul>
            <li>
              <p><tt style="color: #A03D10">FreeMarkerServlet</tt> now has a setting for
              the <tt style="color: #A03D10">Content-Type</tt> header of the response,
              defaulting to <tt style="color: #A03D10">text/html</tt>. Previously it set no
              content type, which made it not play nicely when integrated with
              software that expected it (i.e. OpenSymphony SiteMesh).</p>
            </li>

            <li>
              <p><tt style="color: #A03D10">FreeMarkerServlet</tt> now works correctly
              when mapped to an URL extension instead of URL path
              prefix.</p>
            </li>

            <li>
              <p>You can emulate <tt style="color: #A03D10">include</tt> directive call
              within Java code by calling
              <tt style="color: #A03D10">Environment.include(<i style="color: #DD4400">templateName</i>,
              <i style="color: #DD4400">charset</i>,
              <i style="color: #DD4400">parse</i>)</tt>.</p>
            </li>
          </ul>    </div>


              <div class="itemizedlist">
<ul>
            <li>
              <p>Bugfix: When <tt style="color: #A03D10">Template.process()</tt> was
              called from another template processing, it set
              <tt style="color: #A03D10">currentEnvironment</tt> to null when it returned,
              thus crashed the parent template processing.</p>
            </li>

            <li>
              <p>Bugfix: the <tt style="color: #A03D10">_descendant</tt> key in JDOM
              support incorrectly left the document root element out of the
              result when applied to a Document node.</p>
            </li>

            <li>
              <p>Bugfix: because we incorrectly assumed certain behavior of
              JDK 1.4 Beans introspector, calls to public interface methods on
              non-public classes that implement the interface were causing
              exceptions on JDK 1.4</p>
            </li>
          </ul>    </div>

        
            
  
  
  
  <h2 class="rank_section2"
        >
<a name="autoid_234"></a>Other changes  </h2>


              <div class="itemizedlist">
<ul>
            <li>
              <p>Various minor supplements to the manual.</p>
            </li>

            <li>
              <p>Documentation HTML pages don't try to load the SourceForge
              logo from the Internet anymore.</p>
            </li>

            <li>
              <p>The default ant target is <tt style="color: #A03D10">jar</tt>, not
              <tt style="color: #A03D10">dist</tt>.</p>
            </li>
          </ul>    </div>

          
</div>

    <div class="navigation">
    <div class="pagers">
      <div class="pagersVerticalSpacer"><img src="docgen-resources/img/none.gif" width="1" height="1" alt="" hspace="0" vspace="0" border="0"/></div>
<div class="pagerButton"><a href="versions_2_1_1.html"><span class="hideA">Next page: </span>2.1.1</a></div><div class="pagerButton"><a href="versions_2_1_3.html">Previous page</a></div><div class="pagerButton"><a href="app_versions.html">Parent page</a></div><div class="pagerButton"><a href="index.html">Contents</a></div>      <div class="pagersVerticalSpacer"><img src="docgen-resources/img/none.gif" width="1" height="1" alt="" hspace="0" vspace="0" border="0"/></div>
    </div>
    <div class="breadcrumb">
<span class="breadcrumb">        You are here:
          <a href="index.html">Book</a>
            <b>></b>
          <a href="app.html">Appendixes</a>
            <b>></b>
          <a href="app_versions.html">Versions</a>
            <b>></b>
          2.1.2
</span>    </div>
    </div>

<table border=0 cellspacing=0 cellpadding=0 width="100%">
    <tr>
      <td colspan=2><img src="docgen-resources/img/none.gif" width=1 height=8 alt=""></td>
    <tr>
      <td align="left" valign="top"><span class="smallFooter">
            FreeMarker Manual -- For FreeMarker 2.3.20
            <br>
          HTML generated: 2013-06-27 20:54:33 GMT
      </span></td>
      <td align="right" valign="top"><span class="smallFooter">
          <a href="http://www.xmlmind.com/xmleditor/">
            <img src="docgen-resources/img/xxe.gif" alt="Edited with XMLMind XML Editor">
          </a>
      </span></td>
    </tr>
</table>
  <!-- Put pre-loaded images here: -->
  <div style="display: none">
    <img src="docgen-resources/img/linktargetmarker.gif" alt="Here!" />
  </div>
</body>
</html>

